package com.kangkang.creationalpattern;

import java.awt.event.WindowAdapter;
import java.util.concurrent.ThreadFactory;

public class Singleton {

    // 饿汉式创建单例对象
    private static final Singleton singleton = new Singleton();

    private Singleton() {
    }

    public static Singleton getInstance() {
        return singleton;
    }

}
